import request from "@/utils/request";

/**
 * 查询设备分组列表
 * @param params
 * @returns
 */
export function getgroupList(data) {
  return request({
    url: '/management/machine.machine_group/getList',
    method: 'post',
    data
  })
}

/**
 * 添加设备分组列表
 * @param params
 * @returns
 */
export function addgroup(data) {
  return request({
    url: '/management/machine.machine_group/add',
    method: 'post',
    data
  })
}

/**
 * 修改设备分组列表
 * @param params
 * @returns
 */
export function updategroup(data) {
  return request({
    url: '/management/machine.machine_group/update',
    method: 'post',
    data
  })
}

/**
 * 删除设备分组列表
 * @param params
 * @returns
 */
export function delgroup(data) {
  return request({
    url: '/management/machine.machine_group/del',
    method: 'post',
    data
  })
}

/**
 * 添加设备分组多语言信息
 * @param params
 * @returns
 */
export function addgrouplang(data) {
  return request({
    url: '/management/machine.machine_group_lang/add',
    method: 'post',
    data
  })
}

/**
 * 修改设备分组多语言信息
 * @param params
 * @returns
 */
export function updategrouplang(data) {
  return request({
    url: '/management/machine.machine_group_lang/update',
    method: 'post',
    data
  })
}

/**
 * 查询设备分组多语言信息列表
 * @param params
 * @returns
 */
export function getListgrouplang(data) {
  return request({
    url: '/management/machine.machine_group_lang/getList',
    method: 'post',
    data
  })
}

/**
 * 删除设备分组多语言信息
 * @param params
 * @returns
 */
export function delgrouplang(data) {
  return request({
    url: '/management/machine.machine_group_lang/del',
    method: 'post',
    data
  })
}

/**
 * 分组绑定设备
 * @param params
 * @returns
 */
export function mgBindMachine(data) {
  return request({
    url: '/management/machine.machine_group_mg/mgBindMachine',
    method: 'post',
    data
  })
}

/**
 * 设备绑定分组
 * @param params
 * @returns
 */
export function machineBindMg(data) {
  return request({
    url: '/management/machine.machine_group_mg/machineBindMg',
    method: 'post',
    data
  })
}

/**
 * 获取分组关联设备列表
 * @param params
 * @returns
 */
export function getListgroupmg(data) {
  return request({
    url: '/management/machine.machine_group_mg/getList',
    method: 'post',
    data
  })
}

/**
 * 导出设备分组的设备列表
 * @param params
 * @returns
 */
export function exporgrouptM(data) {
  return request({
    url: '/management/machine.machine_group_mg/exportM',
    method: 'post',
    data
  })
}